package lab02.test35;

public class Employee {
    private String name;
    private String no;

    public String toString() {
        return "姓名："+name+"\n"+"工号："+no+"\n";
    }

    public double  computeSalary(){
        return 0;
    }
    Employee(){}
    Employee(String name,String no){
        this.name = name;
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

}
